package com.example.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "阅读记录", description = "用于保存用户的阅读记录")
public class BooksHistory {
    /*编号*/
    @ApiModelProperty(value = "id", example = "1")
    private Integer id;
    /*用户编号*/
    @ApiModelProperty(value = "用户uid与user表中的id相对应", example = "1")
    private Integer uid;
    /*书籍编号*/
    @ApiModelProperty(value = "浏览过的书籍编号与books表中书籍的id相对应", example = "1")
    private Integer bid;
    /*用户*/
    @ApiModelProperty(value = "浏览的用户名", example = "李华")
    private String username;
    /*书籍名*/
    @ApiModelProperty(value = "书籍的名字", example = "宋代文化消费研究")
    private String name;
    @ApiModelProperty(value = "书籍的封面图片", example = "http://47.96.160.116:9090/files/1721113324581-殿试.png")
    private String img;

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
    @ApiModelProperty(value = "书籍的描述", example = "本书以宋代文化消费的内容为线索，以消费者为切入点，着眼于消费过程，探索宋代文化消费状况、特点、影响等，并对从文化消费现象背后所透视出的社会结构的变动、社会阶层的分化、文化的层间互动、消费观念的嬗变、社会流动的加速等方面，从机理和意义层面进行了深刻而独到的剖析，为我们展现了一幕宋代文化消费的历史活剧。")
    private String detail;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
